package cn.mumzone.pos.api;

import cn.mumzone.basic.net.response.BaseResponse;
import cn.mumzone.basic.net.response.PageListResponse;
import cn.mumzone.pos.model.BillDetailEntity;
import cn.mumzone.pos.model.BillInfoListBean;
import cn.mumzone.pos.model.RechargeDetailEntity;
import okhttp3.RequestBody;
import retrofit2.Response;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created By Dlx
 * on 2019/6/26
 */
public interface BillService {
    @GET("egg_order/api/v1/pos/account/getAccountPageList")
    Observable<Response<BaseResponse<PageListResponse<BillInfoListBean>>>> getAccountPageList(
            @Query("dateTime") String dateTime, @Query("allBills") String allBills, @Query("keyword") String keyword, @Query("type") String type, @Query("pageNum") String page, @Query("pageSize") String pageSize);

    @GET("egg_order/api/v1.3/pos/bill/detail")
    Observable<Response<BaseResponse<BillDetailEntity>>> getBillDetail(
            @Query("saleId") String saleId, @Query("orderType") String orderType);


    @POST("egg_order/api/v2.2/pay/printStoreReceipt")
    Observable<Response<BaseResponse<RechargeDetailEntity>>> getRechargeBillDetail(@Body RequestBody body);
}
